package org.nvframe.event.eventtype;

import org.newdawn.slick.GameContainer;
import org.nvframe.event.AbstractEvent;
import org.nvframe.event.EventListener;
import org.nvframe.event.EventService.EVENT_TYPE;

/**
 * 
 * @author Nik Van Looy
 */
public class UpdateEvent extends AbstractEvent {

	private static Class<? extends EventListener> listener = UpdateListener.class;
	
	private GameContainer gc;
	private int delta;

	public UpdateEvent(GameContainer gc, int delta) {
		// set the event type
		eventType = EVENT_TYPE.GAMEUPDATE;
		
		// set event-specific properties
		this.gc = gc;
		this.delta = delta;
	}

	public GameContainer getGc() {
		return gc;
	}

	public int getDelta() {
		return delta;
	}

	@Override
	protected Class<? extends EventListener> getListener() {
		return listener;
	}
}
